<template>
  <div class="recommendview">
    <div class="recommend-item" v-for="recommend in recommends" :key="recommend.acm">
      <a :href="recommend.link">
        <img :src="recommend.image" alt="">
        <div>{{recommend.title}}</div>
      </a>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: "RecommendView",
  data() {
    return {};
  },
  components: {},
  props:{
      recommends:{
          type:Array,
          default(){
              return [];
          }
      }
  }
};
</script>

<style scoped>
.recommendview{
  display: flex;
  font-size: 14px;
  padding: 10px 0 15px;
  border-bottom: 10px solid #eee;
}
.recommend-item{
  flex: 1;
  text-align: center;
}
.recommend-item img{
  width: 70px;
  height: 70px;
  margin-bottom: 5px;
}
.recommendview a{
  color: #333;
}
</style>
